'''


books = [
    '三国演义',
    '水浒传',
    '红楼梦',
    '西游记',
    '镜花缘',
    '封神演义',
    '聊斋志异'
]
print(books)
for book in books:
    if book != '镜花缘':
        print(book)

'''


# for 循环输出输出数字范围
'''
for i in range(10, 15):
    print(i)
'''

'''
查找出所有的水仙花数
'''
for n in range(100, 1000):
    i = n / 100
    # print(i)
    i = int(i)
    # print(i)
    j = n / 10 % 10
    j = int(j)
    # print(j)
    k = n % 10
    # print(k)
    # result = i*i*i + j*j*j + k*k*k
    result = i ** 3 + j ** 3 + k ** 3
    # print(result)
    if n == result:
        print(n, end='')
        print('是水仙花数！')